package com.javaai.project;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;

/**
 * 主应用程序入口类
 */
@SpringBootApplication
// 显式指定组件扫描范围
@MapperScan("com.javaai.project.mapper")  // 扫描Mapper接口所在包
public class Application {
    public static void main(String[] args) {
        SpringApplication.run(Application.class, args);
    }
}
